<?php
	class pic_baseModel extends viewModel{
		
		public $table = "pic_base";
		public $view = array(
			'category' => array(
				'type' => 'inner',
				"on" => "pic_base.catid=category.catid"
			),

			'order'=> array(
				'type' => 'inner',
				'on' => 'pic_base.picid = order.picid'
			),

			'totalticket' => array(
				'type' => 'inner',
				'on' => 'pic_base.picid = totalticket.pic' 
			),
	
		);
	}
?>